package com.atguigu.gmall.order.service;

import com.atguigu.gmall.model.enums.ProcessStatus;
import com.atguigu.gmall.model.order.OrderInfo;

import java.util.List;
import java.util.Map;

public interface OrderInfoService {

    boolean hasStock(Long skuId, Integer skuNum);

    Long saveOrder(OrderInfo orderInfo);

    void cancelOrder(Long orderId);

    OrderInfo getOrderInfo(Long orderId);

    void updateOrder(Long orderId);

    void updateOrder(String orderId, ProcessStatus processStatus);

    List<OrderInfo> orderSpilt(Long orderId, String wareSkuMap);

    //构建库存微服务需要的json串数据 HTTP请求
    public Map initWareOrder(OrderInfo orderInfo);
}
